module MainHelper
	def findColumns( table_name )
		@list_of_cols   = COLUMNS.find(:all, :conditions => ["TABLE_SCHEMA = 'company' AND TABLE_NAME = '" + table_name + "'"])
	end
	
	def printColumns( table_name )
	  output = table_name + " ("
		first = true
		for col in findColumns( table_name )
		  if first
					output += col.COLUMN_NAME
					first = false
				else
					output += ", " + col.COLUMN_NAME
				end
			end
			output += ")"
			return output
	end
end
